﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="JGridControl.ascx.cs" Inherits="ZLCMS.Web.SystemManage.Control.JGridControl" %>
<div id="<%=ClientID %>" class="jGridControl" onremove='<%=OnRemove %>' onedit='<%=OnEdit %>' option_ext='<%=Server.HtmlEncode(OptionExt) %>' json_data='<%=Value %>' editor='<%=EditorUrl %>' editor_w='<%=DialogWidth %>' editor_h='<%=DialogHeight %>' key_col='<%=KeyColumnName %>' readonly='<%=Readonly %>'>
 
<div class="panelBar"><ul class="toolBar"></ul></div>
<table class="list" width="100%">
<thead>
<tr>
<th width="22px"><input type="checkbox" group="group" class="checkboxCtrl"/></th>
<%foreach(ListItem item in Columns){ %>
<th prop="<%=item.Value %>"  <%foreach(string key in item.Attributes.Keys){ %><%=key%>='<%=item.Attributes[key] as string%>' <%} %> style='<%foreach(string key in item.Attributes.CssStyle.Keys){ %><%=key%>:<%=item.Attributes.CssStyle[key] as string%>;<%} %>'><%=item.Text %></th>
<%} %>
<th align=center>操作</th>
</tr>
</thead>
<tbody>
<tr><td colspan="<%=Columns.Count + 2 %>" height="20px"></td></tr>
</tbody>
 </table>
    
 <input class="grid_json" id="grid_json" runat="Server" type="hidden" />
</div>